﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Xpo;

namespace Zero.DataLayer.Donnees
{
    public class XpoInsertionPresse: XPBaseObject
    {
          public XpoInsertionPresse()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

          public XpoInsertionPresse(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }


        private Guid _Oid;
        [Key]
         public Guid Oid
        {
            get { return _Oid; }
            set { SetPropertyValue("Oid", ref _Oid, value); }
        }


        private XpoSupportPresse _SupportPresse;
        public XpoSupportPresse SupportPresse
        {
            get { return _SupportPresse; }
            set { SetPropertyValue("SupportPresse", ref _SupportPresse, value); }
        }



        private int _NombreFoisLus;
        public int NombreFoisLus
        {
            get { return _NombreFoisLus; }
            set { SetPropertyValue("NombreFoisLus", ref _NombreFoisLus, value); }
        }

        private DateTime _Date;
        public DateTime Date
        {
            get { return _Date; }
            set { SetPropertyValue("Date", ref _Date, value); }
        }

        private XpoPlanPresse _XpoPlanPresse;
        [Association("XpoPlanPresse-XpoInsertionPresse")]
        public XpoPlanPresse XpoPlanPresse
        {
            get { return _XpoPlanPresse; }
            set { SetPropertyValue("XpoPlanPresse", ref _XpoPlanPresse, value); }
        }

        [ Association("XpoInsertionPresses-Signalitique")]
        public XPCollection<Signalitique> Signalitiques
        {
            get { return GetCollection<Signalitique>("Signalitiques"); }
        }

    }
}
